
<!DOCTYPE html>
<html lang="zh-cn">
  <head>

  <include file="public@head"/>

  </head>
  <body>
  
 
    <include file='public@header'/>

        <form id="form1">
            <div class="input_group">
                <span>您的姓名/公司名<b>*</b></span>
                <input type="text" id="name" name="username">
            </div>
            <div class="input_group">
                <span>联系电话<b>*</b></span>
                <input type="text" id="tel" name="mobile">
            </div>
            <div class="input_group">
                <span>留言内容<b>*</b></span>
                <textarea  cols="30" rows="2" id="message" name="content"></textarea>
            </div>
            <input type="hidden" id="FormId" name="FormId" value="1">
            <button type="button" class="btn"  id="btnSendForm1">提交</button>
        </form>

        <script type="text/javascript">
            $(function () {



                //提交表单
                $("#btnSendForm1").click(function () {

                    var data = $("#form1").serialize();
                    $.post("/portal/message/add", data, function (res) {
                        if (res.code == 1) {
                            alert("提交成功！");
                            location.href = location.href.replace(/#/g,"");
                        }
                        else {
                            alert("提交失败！" + (res.Message != "" ? ("\n" + res.str) : ""));
                        }
                    });
                });
            });

        </script>



   
       <include file='public@footer'/>


   
  </body>
</html>